package com.demo.day509;

import java.util.Arrays;

/**
 * @Auther: 86176
 * @Date: 2021/5/9 - 05 - 09 - 21:26
 * @version: 1.0
 */
public class Student {
    private String name;
    private String StudentNum;
    private String ClassNum;
    private int age;

    public Student(String name, String studentNum, String classNum, int age) {
        this.name = name;
        this.StudentNum = studentNum;
        this.ClassNum = classNum;
        this.age = age;
    }

    public Student() {

    }

    public String getStudentNum() {
        return StudentNum;
    }

    public void setStudentNum(String studentNum) {
        StudentNum = studentNum;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setClassNum(String classNum) {
        ClassNum = classNum;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "名字：'" + name + '\'' +
                ", 学号：'" + StudentNum + '\'' +
                ", 班级：='" + ClassNum + '\'' +
                ", 年龄：" + age +
                '}';
    }

}
